<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=UTF-8"%>

<%@page import="java.util.Map"%>
<%@page import="java.util.Set"%><html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<script type="text/javascript" src="http://static.mttang.com/js/jquery-1.4.2.min.js"></script>
<title>管理导航区域</title>
</head>
<script  type="text/javascript">
var preClassName = "man_nav_0";
function list_sub_nav(Id,sortname){
   if(preClassName != ""){
      getObject(preClassName).className="bg_image";
   }
   if(getObject(Id).className == "bg_image"){
      getObject(Id).className="bg_image_onclick";
      preClassName = Id;
	  showInnerText(Id);
	  window.top.frames['leftFrame'].outlookbar.getbytitle(sortname);
	  window.top.frames['leftFrame'].outlookbar.getdefaultnav(sortname);
   }
}

function showInnerText(Id){
	 var   showText =  "欢迎使用后台管理系统!";
	 getObject('show_text').innerHTML = showText;
}
 //获取对象属性兼容方法
 function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
}
 function changeSiteKey(){
	 var siteid = $("#keySite").val();
		$.ajax({
			  url: "<%=request.getContextPath()%>/login/login.do?method=loginChangeKey",
			  cache: false,
			  type:"post",
			  dataType:"text",
			  error:function(XMLHttpRequest,textStatus,errorThrown){
				  alert("请求的地址错误");
			  },
			  data:"&siteId="+siteid,
			  success: function(retext){
				  if(retext){
					  alert(retext);
				  }else{
					  var reloadUrl = window.top.frames["manFrame"].location.href;
					  if(reloadUrl.indexOf("prv=query")<0){
						  if(reloadUrl.indexOf("?")<0){
							  reloadUrl+="?prv=query";
						  }else{
							  reloadUrl+="&prv=query";
						  }
					  }
					  window.top.frames["manFrame"].location.href=reloadUrl;
				  }
			  }
		});
	}
</script>
<body>
<div id="nav">
    <ul>
     <li id="man_nav_0" onclick="list_sub_nav(id,'0')"  class="bg_image_onclick">管理首页</li>
    <c:forEach items="${bean.list}" var="item" varStatus="status">
    <li id="man_nav_<c:out  value="${item.menuId }"/>" onclick="list_sub_nav(id,'<c:out  value="${item.menuId }"/>')"  class="bg_image"><c:out  value="${item.menuName }"  /></li>
    </c:forEach>
    </ul>
</div>
<div id="sub_info">
  <span style="margin: 0pt 10px 0pt 10pt;">
  </span>
  <img src="images/hi.gif" />&nbsp;<span id="show_text">欢迎使用后台管理系统!</span>
</div>
<span style="">
</div>
</body>
</html>